#!/bin/bash
#read  -n 1 -p "please input 1 digit:" key
#case  "$key" in
#[a-Z])
#	echo "this is digit!"
#	;;
#[0-9])
#	echo "this is number!"
#	;;
#*)
#	echo "this is others digit"
#	;;
#esac

#others way

read  -n 1 -p "please input 1 digit:" key
if [[ $key == [a-Z] ]];then
	echo "this is character!"	
elif [[ $key == [0-9] ]];then
	echo "this is number!"
else
	echo "this is special character"
fi
